package com.zhongxin.wymovieticketentity;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import android.R.integer;
import android.util.Log;

public class HotMovies implements Serializable {
	/**
	 * 序列化的id
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 影片id
	 */
	private long id;
	/**
	 * 影片名
	 */
	private String name;
	/**
	 * 影片简介
	 */
	private String highlight;
	/**
	 * 影片分数
	 */
	private double grade;
	/**
	 * 影片logo
	 */
	private String logo;
	/**
	 * 影片是否为新片
	 */
	private int isNew;
	/**
	 * 影片是否有降价
	 */
	private int isSale;
	private int isDiscount;
	/**
	 * 影片类型
	 */
	private String dimensional;
	/**
	 * 影片的座位情况
	 */
	private int isSeatOccupy;
	/**
	 * 影片上映时间
	 */
	private String releaseDate;
	/**
	 * 影片描述信息
	 */
	private String description;
	/**
	 * 影片放映时间
	 */
	private String duration;
	/**
	 * 影片导演
	 */
	private String director;
	/**
	 * 影片演员
	 */
	private String actors;
	/**
	 * 影片不同屏幕适配的logo
	 */
	private String logo1;
	private String logo2;
	private String logo3;
	private String logo556640;
	/**
	 * 影片类型
	 */
	private String category;
	/**
	 * 影片地区
	 */
	private String area;
	/**
	 * 影片语言
	 */
	private String language;
	/**
	 * 影片是否为热映电影
	 */
	private int isHot;
	private String preview;
	private String timeList;
	/**
	 * 通知数（暂定）
	 */
	private int notifyCount;
	/**
	 * 显示状态（暂定）
	 */
	private int onShowStatus;
	private double lowPrice;
	private String highBoxOffice;
	private String stillsList;
	/**
	 * 影片预告地址
	 */
	private String mobilePreview;
	/**
	 * 当前的城市是否可看
	 */
	private boolean isAvailableInCurrentCity;
	private int isScheduleSupport;
	/**
	 * 今天是否有场次
	 */
	private String screenings;
	private String spell;

	public void parseJson(JSONObject json) throws JSONException {
		if (json != null) {

			id = json.getLong("id");
			name = json.getString("name");
			highlight = json.getString("highlight");
			grade = json.getDouble("grade");
			logo = json.getString("logo");
			isNew = json.getInt("isNew");
			isSale = json.getInt("isSale");
			isDiscount = json.getInt("isDiscount");
			dimensional = json.getString("dimensional");
			isSeatOccupy = json.getInt("isSeatOccupy");
			releaseDate = json.getString("releaseDate");
			description = json.getString("description");
			duration = json.getString("duration");
			director = json.getString("director");
			actors = json.getString("actors");
			logo1 = json.getString("logo1");
			logo2 = json.getString("logo2");
			logo3 = json.getString("logo3");
			logo556640 = json.getString("logo556640");
			category = json.getString("category");
			area = json.getString("area");
			language = json.getString("language");
			isHot = json.getInt("isHot");
			preview = json.getString("preview");
			timeList = json.getString("timeList");
			notifyCount = json.getInt("notifyCount");
			onShowStatus = json.getInt("onShowStatus");
			lowPrice = json.getDouble("lowPrice");
			highBoxOffice = json.getString("highBoxOffice");
			stillsList = json.getString("stillsList");
			mobilePreview = json.getString("mobilePreview");
			isAvailableInCurrentCity = json
					.getBoolean("isAvailableInCurrentCity");
			isScheduleSupport = json.getInt("isScheduleSupport");
			screenings = json.getString("screenings");
			spell = json.getString("spell");

		}
	}

	public long getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHighlight() {
		return highlight;
	}

	public void setHighlight(String highlight) {
		this.highlight = highlight;
	}

	public double getGrade() {
		return grade;
	}

	public void setGrade(double grade) {
		this.grade = grade;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public int getIsNew() {
		return isNew;
	}

	public void setIsNew(int isNew) {
		this.isNew = isNew;
	}

	public int getIsSale() {
		return isSale;
	}

	public void setIsSale(int isSale) {
		this.isSale = isSale;
	}

	public int getIsDiscount() {
		return isDiscount;
	}

	public void setIsDiscount(int isDiscount) {
		this.isDiscount = isDiscount;
	}

	public String getDimensional() {
		return dimensional;
	}

	public void setDimensional(String dimensional) {
		this.dimensional = dimensional;
	}

	public int getIsSeatOccupy() {
		return isSeatOccupy;
	}

	public void setIsSeatOccupy(int isSeatOccupy) {
		this.isSeatOccupy = isSeatOccupy;
	}

	public String getReleaseDate() {
		return releaseDate;
	}

	public void setReleaseDate(String releaseDate) {
		this.releaseDate = releaseDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getActors() {
		return actors;
	}

	public void setActors(String actors) {
		this.actors = actors;
	}

	public String getLogo1() {
		return logo1;
	}

	public void setLogo1(String logo1) {
		this.logo1 = logo1;
	}

	public String getLogo2() {
		return logo2;
	}

	public void setLogo2(String logo2) {
		this.logo2 = logo2;
	}

	public String getLogo3() {
		return logo3;
	}

	public void setLogo3(String logo3) {
		this.logo3 = logo3;
	}

	public String getLogo556640() {
		return logo556640;
	}

	public void setLogo556640(String logo556640) {
		this.logo556640 = logo556640;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public int getIsHot() {
		return isHot;
	}

	public void setIsHot(int isHot) {
		this.isHot = isHot;
	}

	public String getPreview() {
		return preview;
	}

	public void setPreview(String preview) {
		this.preview = preview;
	}

	public String getTimeList() {
		return timeList;
	}

	public void setTimeList(String timeList) {
		this.timeList = timeList;
	}

	public int getNotifyCount() {
		return notifyCount;
	}

	public void setNotifyCount(int notifyCount) {
		this.notifyCount = notifyCount;
	}

	public int getOnShowStatus() {
		return onShowStatus;
	}

	public void setOnShowStatus(int onShowStatus) {
		this.onShowStatus = onShowStatus;
	}

	public double getLowPrice() {
		return lowPrice;
	}

	public void setLowPrice(double lowPrice) {
		this.lowPrice = lowPrice;
	}

	public String getHighBoxOffice() {
		return highBoxOffice;
	}

	public void setHighBoxOffice(String highBoxOffice) {
		this.highBoxOffice = highBoxOffice;
	}

	public String getStillsList() {
		return stillsList;
	}

	public void setStillsList(String stillsList) {
		this.stillsList = stillsList;
	}

	public String getMobilePreview() {
		return mobilePreview;
	}

	public void setMobilePreview(String mobilePreview) {
		this.mobilePreview = mobilePreview;
	}

	public boolean isAvailableInCurrentCity() {
		return isAvailableInCurrentCity;
	}

	public void setAvailableInCurrentCity(boolean isAvailableInCurrentCity) {
		this.isAvailableInCurrentCity = isAvailableInCurrentCity;
	}

	public int getIsScheduleSupport() {
		return isScheduleSupport;
	}

	public void setIsScheduleSupport(int isScheduleSupport) {
		this.isScheduleSupport = isScheduleSupport;
	}

	public String getScreenings() {
		return screenings;
	}

	public void setScreenings(String screenings) {
		this.screenings = screenings;
	}

	public String getSpell() {
		return spell;
	}

	public void setSpell(String spell) {
		this.spell = spell;
	}

	public HotMovies() {
		// TODO Auto-generated constructor stub
	}

}
